import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('ShowTimeLineHint')
export class ShowTimeLineHint extends Component {
    @property
    showTime: number = 1;
    
    start() {
        this.node.active = false;
    }

    show() {
        this.node.active = true;
        this.scheduleOnce(() => {
            this.node.active = false;
        }, this.showTime);    
    }
}

